package cn.jiyun.www.helloworld.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class HelloController {
    @ResponseBody
    @RequestMapping("/hello")
    public Map<String,Object> hello(){
    Map<String,Object>map=new HashMap<>();
    map.put("msg","HelloWorld");
    return map;
    }
}
